#include "dvFunctions.h"

namespace dv_global_functions
{
    QColor getColor(int _color)
    {
        QColor color;
        switch(_color)
        {
        case DV_RED:
            color.setRgb(255,75,0,64);
            break;
        case DV_GREEN:
            color.setRgb(75,255,0,64);
            break;
        case DV_BLUE:
            color.setRgb(0,75,255,64);
            break;
        case DV_WHITE:
            color.setRgb(255,255,255);
            break;
        case DV_BLACK:
            color.setRgb(0,0,0);
            break;
        default:
            color.setRgb(255,255,255);
        }
        return color;
    }
}
